1: | app(app(plus,0),y) | → y | |
2: | app(app(plus,app(s,x)),y) | → app(s,app(app(plus,x),y)) | |
3: | app(app(app(curry,f),x),y) | → app(app(f,x),y) | |
4: | add | → app(curry,plus) | |
5: | APP(app(plus,app(s,x)),y) | → APP(s,app(app(plus,x),y)) | |
6: | APP(app(plus,app(s,x)),y) | → APP(app(plus,x),y) | |
7: | APP(app(plus,app(s,x)),y) | → APP(plus,x) | |
8: | APP(app(app(curry,f),x),y) | → APP(app(f,x),y) | |
9: | APP(app(app(curry,f),x),y) | → APP(f,x) | |
10: | ADD | → APP(curry,plus) | |